package com.unytech.wisdomcommunity.complainrepairfragment;

import android.app.Fragment;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.ImageView;

import com.unytech.wisdomcommunity.R;

/**
 * Created by zed on 2016/11/24/0024.
 * 因UI对原有"投诉报修"不满意,修改之后的"投诉"的fragment(二稿)
 */
public class ComplainFragment2 extends Fragment implements View.OnClickListener {

    private View mRootView;
    private ImageView mAddPhoto_a;
    private ImageView mAddPhoto_b;
    private ImageView mAddPhoto_c;
    private Button mButton_commit;

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        //return super.onCreateView(inflater, container, savedInstanceState);
        if (mRootView == null){
            mRootView = inflater.inflate(R.layout.complain_fragment2, container, false);
        }
        initView(mRootView);

        initHttp();//初始化http

        return mRootView;
    }

    //对联网的操作
    private void initHttp() {

    }

    private void initView(View rootView) {
        mAddPhoto_a = (ImageView) mRootView.findViewById(R.id.comlain_fragment_addphoto_iv_a1);
        mAddPhoto_b = (ImageView) mRootView.findViewById(R.id.comlain_fragment_addphoto_iv_b1);
        mAddPhoto_c = (ImageView) mRootView.findViewById(R.id.comlain_fragment_addphoto_iv_c1);
        mButton_commit = (Button) mRootView.findViewById(R.id.complain_repair_commit_btn);
    }

    @Override
    public void onClick(View v) {

    }
}
